package org.example.comp_algorithm_back.controller;

import jakarta.annotation.Resource;
import org.example.comp_algorithm_back.common.CommonResponse;
import org.example.comp_algorithm_back.dto.WordDTO;
import org.example.comp_algorithm_back.service.WordService;
import org.example.comp_algorithm_back.vo.WordSearchVo;
import org.springframework.web.bind.annotation.*;

@RestController
public class WordController {
    @Resource
    private WordService wordService;

    //单个词评估
    @PostMapping("/survey")
    public CommonResponse<WordSearchVo> survey(@RequestBody WordDTO wordDTO) {
        return wordService.survey(wordDTO);
    }


}
